package com.wutianyi.module.dao;

import java.util.List;

import com.wutianyi.module.commons.PropertyGroup;
import com.wutianyi.module.company.Company;

public class CompanyDaoMysqlImpl implements CompanyDao {

	private CompanyMapper companyMapper;

	@Override
	public void updateCompany(Company company) {
		companyMapper.updateCompany(company);
	}

	@Override
	public List<PropertyGroup> getCompanyStandarPropertyGroups() {
		return companyMapper.getCompanyStandarPropertyGroups();
	}

	@Override
	public void insertCompany(Company company) {
		companyMapper.insertCompany(company);
	}

	public CompanyMapper getCompanyMapper() {
		return companyMapper;
	}

	public void setCompanyMapper(CompanyMapper companyMapper) {
		this.companyMapper = companyMapper;
	}

	@Override
	public Company getCompanyByCId(String companyId) {
		return companyMapper.getCompanyByCId(companyId);
	}

	@Override
	public int deleteCompanyByCId(String companyId) {
		return companyMapper.deleteCompanyByCId(companyId);
	}
	
	@Override
	public Company getCompanyBaseInfoByCId(String companyId) {
		return companyMapper.getCompanyBaseInfoByCId(companyId);
	}

	@Override
	public List<Company> listCompanys() {
		return companyMapper.listCompanys();
	}

	@Override
	public Company getCompanyById(int id) {
		return companyMapper.getCompanyById(id);
	}
}
